﻿@model Tecnosop.Dominio.CLIENTE
@{
    ViewBag.Title = "Detalles de un cliente";
    Layout = "~/Views/Cliente/_LayoutCliente.cshtml";
}
<fieldset>
    <legend>Datos cliente</legend>

    <div class="display-label">@Html.LabelFor(model => model.RUT_CLIENTE)</div>
    <div class="display-field">@Html.DisplayFor(model => model.RUT_CLIENTE)</div>

    <div class="display-label">@Html.LabelFor(model => model.REGION)</div>
    <div class="display-field">@Html.DisplayFor(model => model.REGION1.REGION1)</div>

    <div class="display-label">@Html.LabelFor(model => model.NOMBRE)</div>
    <div class="display-field">@Html.DisplayFor(model => model.NOMBRE)</div>

    <div class="display-label">@Html.LabelFor(model => model.DIRECCION)</div>
    <div class="display-field">@Html.DisplayFor(model => model.DIRECCION)</div>

    <div class="display-label">@Html.LabelFor(model => model.CUIDAD)</div>
    <div class="display-field">@Html.DisplayFor(model => model.CUIDAD)</div>

    <div class="display-label">@Html.LabelFor(model => model.COMUNA)</div>
    <div class="display-field">@Html.DisplayFor(model => model.COMUNA)</div>

    <div class="display-label">@Html.LabelFor(model => model.EMAIL)</div>
    <div class="display-field">
        @(Model.EMAIL != null ? Html.DisplayFor(model => model.EMAIL) : new MvcHtmlString("--- Sin correo ---"))
    </div>

    <div class="display-label">@Html.LabelFor(model => model.TELEFONO_1)</div>
    <div class="display-field">
        @(Model.TELEFONO_1 != null ? Html.DisplayFor(model => model.TELEFONO_1) : new MvcHtmlString("--- Sin teléfono ---"))
    </div>

    <div class="display-label">@Html.LabelFor(model => model.TELEFONO_2)</div>
    <div class="display-field">
        @(Model.TELEFONO_2 != null ? Html.DisplayFor(model => model.TELEFONO_2) : new MvcHtmlString("--- Sin teléfono ---"))
    </div>

    <div class="display-label">@Html.LabelFor(model => model.GIRO)</div>
    <div class="display-field">@Html.DisplayFor(model => model.GIRO)</div>

    <br />
    <hr />
    <p>
        @Html.ActionLink("Volver", MVC.Cliente.VerTodos(), new { @class = "nice radius small blue button" })
        @Html.ActionLink("Editar", MVC.Cliente.Edit(Model.RUT_CLIENTE), new { @class = "nice radius small white button" })
    </p>
</fieldset>
